package com.itcast.dao;

import com.itcast.pojo.Permission;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    @Select("select p.* from health.t_permission p , health.t_role_permission pr where p.id = pr.permission_id and pr.role_id = #{roleId}")
    Set<Permission> findByRoleId(@Param("roleId") int roleId);
}
